<?php
// 获得用户主页轮播图信息
// header("content-type:text/html;charset=UTF-8");
include_once("conn.php");

$select = "SELECT * FROM carousel_pic_infos ORDER BY pic_AddDate ASC";
$result = mysqli_query($connect_DB, $select);
if($result){
    while($row = mysqli_fetch_object($result)){
        echo"
        <div class='list-con'>
            <div class='pic'>
                <img src='../public/pic/carousel/".$row->pic_Name."'>
            </div>
            <div class='pic-title'>".$row->pic_Title."</div>
            <div class='pic-con'>".$row->pic_Content."</div>
            <div class='pic-date'>".$row->pic_AddDate."<br>".$row->pic_AddTime."</div>
            <div class='caozuo'><a href='a_DelCarousel.php?carousel=".$row->pic_Name."'>删除</a></div>
        </div>
        ";
    }
}
